package com.oscroll.singleton.lesson;

import java.io.Serializable;

public class Seriable implements Serializable{

    public final static Seriable INSTANCE = new Seriable();

    private Seriable() {
    }

    public static Seriable getInstance() {
        return INSTANCE;
    }

    // 防止序列化出两个不同的对象，破坏单例
    private Object readResolve(){
        return INSTANCE;
    }
}
